package com.billing.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.LatedeductionsMapper;
import com.billing.model.entity.TLatedeductions;
import com.billing.service.LatedeductionsService;

@Service
public class LatedeductionsServiceImpl implements LatedeductionsService {

	@Resource
	LatedeductionsMapper latedeductionsMapper;
	
	public List<TLatedeductions> getTLatedeductionsList(int organizationid) {
		return latedeductionsMapper.getTLatedeductionsList(organizationid);
	}

	public int updateTLatedeductions(TLatedeductions late) {
		return latedeductionsMapper.updateTLatedeductions(late);
	}

	public int insertTLatedeductionsList(List<TLatedeductions> list) {
		return latedeductionsMapper.insertTLatedeductionsList(list);
	}

	public int deleteTLatedeductions(int[] ids) {
		return latedeductionsMapper.deleteTLatedeductions(ids);
	}

	public int getTLatedeductionsMaximumId() {
		return latedeductionsMapper.getTLatedeductionsMaximumId();
	}

	public int deleteTLatedeductionss(int type,int calculationtype) {
		return latedeductionsMapper.deleteTLatedeductionss(type,calculationtype);
	}

	@Override
	public List<TLatedeductions> getTLEarlyretreatList(int organizationid) {
		return latedeductionsMapper.getTLEarlyretreatList(organizationid);
	}

	@Override
	public int deleteEarlyretreat(int type, int calculationtype) {
		return latedeductionsMapper.deleteEarlyretreat(type, calculationtype);
	}

}
